/*
 *  Copyright 2012 yura.
 * 
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 * 
 *       http://www.apache.org/licenses/LICENSE-2.0
 * 
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *  under the License.
 */
package org.opu.pc.services.beans;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author Yuriy Dunko
 */
public class PublicationBean extends AbstractBean implements Serializable {

	private static final long serialVersionUID = 7532825233619965859L;

    private String publicationPlace;
    private Date date;
    private String conferenceVenue;
    private int pageNumberStart;
    private int pageNumberEnd;
	private boolean wasApplied;

    public PublicationBean() {
    }

    public PublicationBean(int id, String name){
        super(id, name);
    }

    public PublicationBean(int id, String name, String publicationPlace,
            Date date, String conferenceVenue, int pageNumberStart,
            int pageNumberEnd, boolean wasApplied) {
        super(id, name);
        this.publicationPlace = publicationPlace;
        this.date = date;
        this.conferenceVenue = conferenceVenue;
        this.pageNumberStart = pageNumberStart;
        this.pageNumberEnd = pageNumberEnd;
        this.wasApplied = wasApplied;
    }

    public String getPublicationPlace() {
        return publicationPlace;
    }

    public void setPublicationPlace(String publicationPlace) {
        this.publicationPlace = publicationPlace;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getConferenceVenue() {
        return conferenceVenue;
    }

    public void setConferenceVenue(String conferenceVenue) {
        this.conferenceVenue = conferenceVenue;
    }

    public int getPageNumberStart() {
        return pageNumberStart;
    }

    public void setPageNumberEnd(int pageNumber) {
        this.pageNumberStart = pageNumber;
    }

    public int getPageNumberEnd() {
        return pageNumberEnd;
    }

    public void setPageNumberStart(int pageNumberStart) {
        this.pageNumberStart = pageNumberStart;
    }

    public boolean isWasApplied() {
        return wasApplied;
    }

    public void setWasApplied(boolean wasApplied) {
        this.wasApplied = wasApplied;
    }

    @Override
    public String toString() {
        return getTitle();
    }
}
